<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //数组合并方法1
        let ary1 = [1,2,3];
        let ary2 = [4,5,6];
        let ary3 = [...ary1,...ary2];
        console.log(ary3);

        //数组合并方法2
        ary1.push(...ary2);
        console.log(ary1);
    </script>
</body>
</html>